package pub.guoxin.oops.auth.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Created by guoxin on 18-1-21.
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ModifyPasswordVo {

    @NotNull
    @Size(min = 11, max = 11)
    @ApiModelProperty(value = "手机号", required = true)
    private String username;

    @NotNull
    @Size(min = 6, max = 100, message = "密码长度不能小于6位")
    @ApiModelProperty(value = "密码", required = true)
    private String password;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码", required = true)
    private String captcha;

}
